package com.ruoyi.riskrule.config.common;

/**
 *
 * @author cyh
 */

public enum DeviceFingerprintEnum {

    IMEI("1","imei"),
    GAID("2","android"),
    UUID("3","gaid"),
    ANDROID("4","mac"),
    MAC("5","uuid");


    private String type;

    private String methodName;

    DeviceFingerprintEnum(String type, String methodName) {
        this.type = type;
        this.methodName = methodName;
    }

    public static String getV(String type){
        if (type != null) {
            for (DeviceFingerprintEnum b : DeviceFingerprintEnum.values()) {
                if (type.equalsIgnoreCase(b.type)) {
                    return b.methodName;
                }
            }
        }
        return null;
    }

}
